package cn.luischen.model;

import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.junit.rules.ExpectedException;
import org.junit.Test;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.lang.reflect.Method;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import java.util.Map;
import java.util.List;
import com.unitspirit.runtime.*;

/**
 * The class contains tests for the class cn.luischen.model.CommentDomain.
*
* @generatedBy UnitSpirit CreateTemplateTestFile4
* @version 1.0.9.11 
*/
@PowerMockIgnore({ "javax.management.*" })
public class CommentDomain_getType_WGTest {
	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* @date 2022-02-25 13:25:32
	* @see cn.luischen.model.CommentDomain#getType
	* @category null
	* @create by com.unitspirit.stg.gencase.impl.CaseForSubCallNormalImpl.collectCaseForNormal  
	* @author null  
	*/
	@Test
	public void test_getType_1207_113909_364_1_00() throws Throwable {

		cn.luischen.model.CommentDomain unitspirit_fixture = new cn.luischen.model.CommentDomain();
		//成员变量设置
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "mail", "11@qq.com");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "author", "111");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "created", 1607312348);
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "content", "123123123");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "url", "");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "cid", 27);
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "status", "not_audit");

		//返回值定义 
		String result_expected = "";

		/*makeUpForGetMethod*/
		String unitspirit_result_d = "";
		unitspirit_fixture.setType(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getType();
		assertEquals(result_expected, unitspirit_result);
	}

	@Test
	public void test_getType_1207_113909_364_1_01() throws Throwable {

		cn.luischen.model.CommentDomain unitspirit_fixture = new cn.luischen.model.CommentDomain();
		//成员变量设置
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "mail", "11@qq.com");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "author", "111");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "created", 1607312348);
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "content", "123123123");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "url", "");
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "cid", 27);
		/*initClassField*/
		Whitebox.setInternalState(unitspirit_fixture, "status", "not_audit");

		//返回值定义
		String result_expected = "";

		/*makeUpForGetMethod*/
		String unitspirit_result_d = "1";
		unitspirit_fixture.setType(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getType();
		assertEquals(result_expected, unitspirit_result);
	}
}
